Optimal. Leaf size=628 \[ -\frac {2 (a-b) \sqrt {a+b} \left (88 a^4 b B+363 a^2 b^3 B+1617 b^5 B-48 a^5 C-18 a^3 b^2 (11 A+6 C)+6 a b^4 (451 A+348 C)\right ) \cot (c+d x) E\left (\text {ArcSin}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{3465 b^5 d}-\frac {2 (a-b) \sqrt {a+b} \left (4 a^3 b (22 B-9 C)-48 a^4 C-6 a^2 b^2 (33 A-11 B+24 C)+3 b^4 (275 A-539 B+225 C)-3 a b^3 (627 A-143 B+471 C)\right ) \cot (c+d x) F\left (\text {ArcSin}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{3465 b^4 d}-\frac {2 \left (44 a^3 b B-968 a b^3 B-24 a^4 C-75 b^4 (11 A+9 C)-3 a^2 b^2 (33 A+19 C)\right ) \sqrt {a+b \sec (c+d x)} \tan (c+d x)}{3465 b^3 d}+\frac {2 \left (33 a^2 b B+539 b^3 B-18 a^3 C+6 a b^2 (132 A+101 C)\right ) \sec (c+d x) \sqrt {a+b \sec (c+d x)} \tan (c+d x)}{3465 b^2 d}+\frac {2 \left (99 A b^2+110 a b B+3 a^2 C+81 b^2 C\right ) \sec ^2(c+d x) \sqrt {a+b \sec (c+d x)} \tan (c+d x)}{693 b d}+\frac {2 (11 b B+3 a C) \sec ^3(c+d x) \sqrt {a+b \sec (c+d x)} \tan (c+d x)}{99 d}+\frac {2 C \sec ^3(c+d x) (a+b \sec (c+d x))^{3/2} \tan (c+d x)}{11 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 1.79, antiderivative size = 628, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 7, integrand size = 43, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.163, Rules used = {4181, 4187,
4177, 4167, 4090, 3917, 4089} \begin {gather*} \frac {2 \tan (c+d x) \sec ^2(c+d x) \left (3 a^2 C+110 a b B+99 A b^2+81 b^2 C\right ) \sqrt {a+b \sec (c+d x)}}{693 b d}+\frac {2 \tan (c+d x) \sec (c+d x) \left (-18 a^3 C+33 a^2 b B+6 a b^2 (132 A+101 C)+539 b^3 B\right ) \sqrt {a+b \sec (c+d x)}}{3465 b^2 d}-\frac {2 (a-b) \sqrt {a+b} \cot (c+d x) \left (-48 a^4 C+4 a^3 b (22 B-9 C)-6 a^2 b^2 (33 A-11 B+24 C)-3 a b^3 (627 A-143 B+471 C)+3 b^4 (275 A-539 B+225 C)\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (\sec (c+d x)+1)}{a-b}} F\left (\text {ArcSin}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{3465 b^4 d}-\frac {2 \tan (c+d x) \left (-24 a^4 C+44 a^3 b B-3 a^2 b^2 (33 A+19 C)-968 a b^3 B-75 b^4 (11 A+9 C)\right ) \sqrt {a+b \sec (c+d x)}}{3465 b^3 d}-\frac {2 (a-b) \sqrt {a+b} \cot (c+d x) \left (-48 a^5 C+88 a^4 b B-18 a^3 b^2 (11 A+6 C)+363 a^2 b^3 B+6 a b^4 (451 A+348 C)+1617 b^5 B\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (\sec (c+d x)+1)}{a-b}} E\left (\text {ArcSin}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{3465 b^5 d}+\frac {2 (3 a C+11 b B) \tan (c+d x) \sec ^3(c+d x) \sqrt {a+b \sec (c+d x)}}{99 d}+\frac {2 C \tan (c+d x) \sec ^3(c+d x) (a+b \sec (c+d x))^{3/2}}{11 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3917
Rule 4089
Rule 4090
Rule 4167
Rule 4177
Rule 4181
Rule 4187
Rubi steps
\begin {align*} \int \sec ^3(c+d x) (a+b \sec (c+d x))^{3/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx &=\frac {2 C \sec ^3(c+d x) (a+b \sec (c+d x))^{3/2} \tan (c+d x)}{11 d}+\frac {2}{11} \int \sec ^3(c+d x) \sqrt {a+b \sec (c+d x)} \left (\frac {1}{2} a (11 A+6 C)+\frac {1}{2} (11 A b+11 a B+9 b C) \sec (c+d x)+\frac {1}{2} (11 b B+3 a C) \sec ^2(c+d x)\right ) \, dx\\ &=\frac {2 (11 b B+3 a C) \sec ^3(c+d x) \sqrt {a+b \sec (c+d x)} \tan (c+d x)}{99 d}+\frac {2 C \sec ^3(c+d x) (a+b \sec (c+d x))^{3/2} \tan (c+d x)}{11 d}+\frac {4}{99} \int \frac {\sec ^3(c+d x) \left (\frac {3}{4} a (33 a A+22 b B+24 a C)+\frac {1}{4} \left (198 a A b+99 a^2 B+77 b^2 B+156 a b C\right ) \sec (c+d x)+\frac {1}{4} \left (99 A b^2+110 a b B+3 a^2 C+81 b^2 C\right ) \sec ^2(c+d x)\right )}{\sqrt {a+b \sec (c+d x)}} \, dx\\ &=\frac {2 \left (99 A b^2+110 a b B+3 a^2 C+81 b^2 C\right ) \sec ^2(c+d x) \sqrt {a+b \sec (c+d x)} \tan (c+d x)}{693 b d}+\frac {2 (11 b B+3 a C) \sec ^3(c+d x) \sqrt {a+b \sec (c+d x)} \tan (c+d x)}{99 d}+\frac {2 C \sec ^3(c+d x) (a+b \sec (c+d x))^{3/2} \tan (c+d x)}{11 d}+\frac {8 \int \frac {\sec ^2(c+d x) \left (\frac {1}{2} a \left (99 A b^2+110 a b B+3 a^2 C+81 b^2 C\right )+\frac {1}{8} b \left (1012 a b B+45 b^2 (11 A+9 C)+a^2 (693 A+519 C)\right ) \sec (c+d x)+\frac {1}{8} \left (33 a^2 b B+539 b^3 B-18 a^3 C+6 a b^2 (132 A+101 C)\right ) \sec ^2(c+d x)\right )}{\sqrt {a+b \sec (c+d x)}} \, dx}{693 b}\\ &=\frac {2 \left (33 a^2 b B+539 b^3 B-18 a^3 C+6 a b^2 (132 A+101 C)\right ) \sec (c+d x) \sqrt {a+b \sec (c+d x)} \tan (c+d x)}{3465 b^2 d}+\frac {2 \left (99 A b^2+110 a b B+3 a^2 C+81 b^2 C\right ) \sec ^2(c+d x) \sqrt {a+b \sec (c+d x)} \tan (c+d x)}{693 b d}+\frac {2 (11 b B+3 a C) \sec ^3(c+d x) \sqrt {a+b \sec (c+d x)} \tan (c+d x)}{99 d}+\frac {2 C \sec ^3(c+d x) (a+b \sec (c+d x))^{3/2} \tan (c+d x)}{11 d}+\frac {16 \int \frac {\sec (c+d x) \left (\frac {1}{8} a \left (33 a^2 b B+539 b^3 B-18 a^3 C+6 a b^2 (132 A+101 C)\right )+\frac {1}{16} b \left (2299 a^2 b B+1617 b^3 B+6 a^3 C+18 a b^2 (242 A+191 C)\right ) \sec (c+d x)-\frac {3}{16} \left (44 a^3 b B-968 a b^3 B-24 a^4 C-75 b^4 (11 A+9 C)-3 a^2 b^2 (33 A+19 C)\right ) \sec ^2(c+d x)\right )}{\sqrt {a+b \sec (c+d x)}} \, dx}{3465 b^2}\\ &=-\frac {2 \left (44 a^3 b B-968 a b^3 B-24 a^4 C-75 b^4 (11 A+9 C)-3 a^2 b^2 (33 A+19 C)\right ) \sqrt {a+b \sec (c+d x)} \tan (c+d x)}{3465 b^3 d}+\frac {2 \left (33 a^2 b B+539 b^3 B-18 a^3 C+6 a b^2 (132 A+101 C)\right ) \sec (c+d x) \sqrt {a+b \sec (c+d x)} \tan (c+d x)}{3465 b^2 d}+\frac {2 \left (99 A b^2+110 a b B+3 a^2 C+81 b^2 C\right ) \sec ^2(c+d x) \sqrt {a+b \sec (c+d x)} \tan (c+d x)}{693 b d}+\frac {2 (11 b B+3 a C) \sec ^3(c+d x) \sqrt {a+b \sec (c+d x)} \tan (c+d x)}{99 d}+\frac {2 C \sec ^3(c+d x) (a+b \sec (c+d x))^{3/2} \tan (c+d x)}{11 d}+\frac {32 \int \frac {\sec (c+d x) \left (\frac {3}{32} b \left (22 a^3 b B+2046 a b^3 B-12 a^4 C+75 b^4 (11 A+9 C)+9 a^2 b^2 (187 A+141 C)\right )+\frac {3}{32} \left (88 a^4 b B+363 a^2 b^3 B+1617 b^5 B-48 a^5 C-18 a^3 b^2 (11 A+6 C)+6 a b^4 (451 A+348 C)\right ) \sec (c+d x)\right )}{\sqrt {a+b \sec (c+d x)}} \, dx}{10395 b^3}\\ &=-\frac {2 \left (44 a^3 b B-968 a b^3 B-24 a^4 C-75 b^4 (11 A+9 C)-3 a^2 b^2 (33 A+19 C)\right ) \sqrt {a+b \sec (c+d x)} \tan (c+d x)}{3465 b^3 d}+\frac {2 \left (33 a^2 b B+539 b^3 B-18 a^3 C+6 a b^2 (132 A+101 C)\right ) \sec (c+d x) \sqrt {a+b \sec (c+d x)} \tan (c+d x)}{3465 b^2 d}+\frac {2 \left (99 A b^2+110 a b B+3 a^2 C+81 b^2 C\right ) \sec ^2(c+d x) \sqrt {a+b \sec (c+d x)} \tan (c+d x)}{693 b d}+\frac {2 (11 b B+3 a C) \sec ^3(c+d x) \sqrt {a+b \sec (c+d x)} \tan (c+d x)}{99 d}+\frac {2 C \sec ^3(c+d x) (a+b \sec (c+d x))^{3/2} \tan (c+d x)}{11 d}+\frac {\left (88 a^4 b B+363 a^2 b^3 B+1617 b^5 B-48 a^5 C-18 a^3 b^2 (11 A+6 C)+6 a b^4 (451 A+348 C)\right ) \int \frac {\sec (c+d x) (1+\sec (c+d x))}{\sqrt {a+b \sec (c+d x)}} \, dx}{3465 b^3}+\frac {\left (32 \left (\frac {3}{32} b \left (22 a^3 b B+2046 a b^3 B-12 a^4 C+75 b^4 (11 A+9 C)+9 a^2 b^2 (187 A+141 C)\right )-\frac {3}{32} \left (88 a^4 b B+363 a^2 b^3 B+1617 b^5 B-48 a^5 C-18 a^3 b^2 (11 A+6 C)+6 a b^4 (451 A+348 C)\right )\right )\right ) \int \frac {\sec (c+d x)}{\sqrt {a+b \sec (c+d x)}} \, dx}{10395 b^3}\\ &=-\frac {2 (a-b) \sqrt {a+b} \left (88 a^4 b B+363 a^2 b^3 B+1617 b^5 B-48 a^5 C-18 a^3 b^2 (11 A+6 C)+6 a b^4 (451 A+348 C)\right ) \cot (c+d x) E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{3465 b^5 d}-\frac {2 (a-b) \sqrt {a+b} \left (a^3 b (88 B-36 C)-48 a^4 C-6 a^2 b^2 (33 A-11 B+24 C)+3 b^4 (275 A-539 B+225 C)-3 a b^3 (627 A-143 B+471 C)\right ) \cot (c+d x) F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{3465 b^4 d}-\frac {2 \left (44 a^3 b B-968 a b^3 B-24 a^4 C-75 b^4 (11 A+9 C)-3 a^2 b^2 (33 A+19 C)\right ) \sqrt {a+b \sec (c+d x)} \tan (c+d x)}{3465 b^3 d}+\frac {2 \left (33 a^2 b B+539 b^3 B-18 a^3 C+6 a b^2 (132 A+101 C)\right ) \sec (c+d x) \sqrt {a+b \sec (c+d x)} \tan (c+d x)}{3465 b^2 d}+\frac {2 \left (99 A b^2+110 a b B+3 a^2 C+81 b^2 C\right ) \sec ^2(c+d x) \sqrt {a+b \sec (c+d x)} \tan (c+d x)}{693 b d}+\frac {2 (11 b B+3 a C) \sec ^3(c+d x) \sqrt {a+b \sec (c+d x)} \tan (c+d x)}{99 d}+\frac {2 C \sec ^3(c+d x) (a+b \sec (c+d x))^{3/2} \tan (c+d x)}{11 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 21.32, size = 1087, normalized size = 1.73 \begin {gather*} \frac {4 (a+b \sec (c+d x))^{3/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \sqrt {\frac {1}{1-\tan ^2\left (\frac {1}{2} (c+d x)\right )}} \left ((a+b) \left (-88 a^4 b B-363 a^2 b^3 B-1617 b^5 B+48 a^5 C+18 a^3 b^2 (11 A+6 C)-6 a b^4 (451 A+348 C)\right ) E\left (\text {ArcSin}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {a-b}{a+b}\right ) \sqrt {1-\tan ^2\left (\frac {1}{2} (c+d x)\right )} \left (1+\tan ^2\left (\frac {1}{2} (c+d x)\right )\right ) \sqrt {\frac {a+b-a \tan ^2\left (\frac {1}{2} (c+d x)\right )+b \tan ^2\left (\frac {1}{2} (c+d x)\right )}{a+b}}+b (a+b) \left (-48 a^4 C+4 a^3 b (22 B+9 C)-6 a^2 b^2 (33 A+11 B+24 C)+3 b^4 (275 A+539 B+225 C)+3 a b^3 (627 A+143 B+471 C)\right ) F\left (\text {ArcSin}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {a-b}{a+b}\right ) \sqrt {1-\tan ^2\left (\frac {1}{2} (c+d x)\right )} \left (1+\tan ^2\left (\frac {1}{2} (c+d x)\right )\right ) \sqrt {\frac {a+b-a \tan ^2\left (\frac {1}{2} (c+d x)\right )+b \tan ^2\left (\frac {1}{2} (c+d x)\right )}{a+b}}+\left (-88 a^4 b B-363 a^2 b^3 B-1617 b^5 B+48 a^5 C+18 a^3 b^2 (11 A+6 C)-6 a b^4 (451 A+348 C)\right ) \tan \left (\frac {1}{2} (c+d x)\right ) \left (b-b \tan ^4\left (\frac {1}{2} (c+d x)\right )+a \left (-1+\tan ^2\left (\frac {1}{2} (c+d x)\right )\right )^2\right )\right )}{3465 b^4 d (b+a \cos (c+d x))^{3/2} (A+2 C+2 B \cos (c+d x)+A \cos (2 c+2 d x)) \sec ^{\frac {7}{2}}(c+d x) \left (1+\tan ^2\left (\frac {1}{2} (c+d x)\right )\right )^{3/2} \sqrt {\frac {a+b-a \tan ^2\left (\frac {1}{2} (c+d x)\right )+b \tan ^2\left (\frac {1}{2} (c+d x)\right )}{1+\tan ^2\left (\frac {1}{2} (c+d x)\right )}}}+\frac {\cos ^3(c+d x) (a+b \sec (c+d x))^{3/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \left (-\frac {4 \left (198 a^3 A b^2-2706 a A b^4-88 a^4 b B-363 a^2 b^3 B-1617 b^5 B+48 a^5 C+108 a^3 b^2 C-2088 a b^4 C\right ) \sin (c+d x)}{3465 b^4}+\frac {4}{99} \sec ^4(c+d x) (11 b B \sin (c+d x)+12 a C \sin (c+d x))+\frac {4 \sec ^3(c+d x) \left (99 A b^2 \sin (c+d x)+110 a b B \sin (c+d x)+3 a^2 C \sin (c+d x)+81 b^2 C \sin (c+d x)\right )}{693 b}+\frac {4 \sec ^2(c+d x) \left (792 a A b^2 \sin (c+d x)+33 a^2 b B \sin (c+d x)+539 b^3 B \sin (c+d x)-18 a^3 C \sin (c+d x)+606 a b^2 C \sin (c+d x)\right )}{3465 b^2}+\frac {4 \sec (c+d x) \left (99 a^2 A b^2 \sin (c+d x)+825 A b^4 \sin (c+d x)-44 a^3 b B \sin (c+d x)+968 a b^3 B \sin (c+d x)+24 a^4 C \sin (c+d x)+57 a^2 b^2 C \sin (c+d x)+675 b^4 C \sin (c+d x)\right )}{3465 b^3}+\frac {4}{11} b C \sec ^4(c+d x) \tan (c+d x)\right )}{d (b+a \cos (c+d x)) (A+2 C+2 B \cos (c+d x)+A \cos (2 c+2 d x))} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(7207\) vs.
\(2(586)=1172\).
time = 1.66, size = 7208, normalized size = 11.48
method | result | size |
default | \(\text {Expression too large to display}\) | \(7208\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a + b \sec {\left (c + d x \right )}\right )^{\frac {3}{2}} \left (A + B \sec {\left (c + d x \right )} + C \sec ^{2}{\left (c + d x \right )}\right ) \sec ^{3}{\left (c + d x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (a+\frac {b}{\cos \left (c+d\,x\right )}\right )}^{3/2}\,\left (A+\frac {B}{\cos \left (c+d\,x\right )}+\frac {C}{{\cos \left (c+d\,x\right )}^2}\right )}{{\cos \left (c+d\,x\right )}^3} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________